-
Notifications
You must be signed in to change notification settings - Fork 59
Add IP version to IP Pool database objects #8885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
96477a9
to
7dad31f
Compare
This is an interesting failure mode. Seems like OPTE failed in a call to |
- Add an `IpVersion` type and attach to all IP Pool objects - Schema and data migration to add the version to IP Pools in the database - Add a services IP Pool for IPv6 addresses - Ensure we can only add ranges to pools of the same version - Fixes a bunch of knock-on effects of splitting out the pools by IP version - Closes #8880
7dad31f
to
3d4a484
Compare
That's an unpleasant one to hit! I've opened oxidecomputer/opte#840. |
nexus/db-queries/src/db/datastore/deployment/external_networking.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. I don't see any real issues. The only thing I would really recommend is making the sure the DB pool matches the authz pool in #8885 (comment).
- Helper IP Pool constructors - Local SQL settings - Simplify caching IP Pools when ensuring an external address - Add sanity check that DB / Authz pool IDs match
IpVersion
type and attach to all IP Pool objects